package com.yunduo.entity.front;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 商品小程序端查询条件
 */
@NoArgsConstructor
@Data
public class SearchGood {
    //商品名称
    @NotNull(message = "系统繁忙,刷新页面")
    private String name;
    //商品上架时间排列
    @NotNull(message = "系统繁忙,刷新页面")
    private boolean time;
    @NotNull(message = "系统繁忙,刷新页面")
    private boolean price;
    @NotNull(message = "系统繁忙,刷新页面")
    private boolean shop;
    //当前页
    @NotNull(message = "系统繁忙,刷新页面")
    private Integer page;
    //每页条数
    @NotNull(message = "系统繁忙,刷新页面")
    private Integer items;
}
